﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Data;
using System.Data.OleDb;
using InfoLayer;

namespace ControlLayer
{
    public class LoaiKhachHangControl
    {
        private LoaiKhachHangDataAccess LoaiKhachHangDA = new LoaiKhachHangDataAccess();

        public DataTable LayBangDanhSachLoaiKhachHang()
        {
            return LoaiKhachHangDA.LayBangDanhSachLoaiKhachHang();
        }

        public void Insert(ref LoaiKhachHangInfo loaiKhachHangInfo)
        {
            LoaiKhachHangDA.Insert(ref loaiKhachHangInfo);
        }

        public void Update(LoaiKhachHangInfo loaiKhachHangInfo)
        {
            LoaiKhachHangDA.Update(loaiKhachHangInfo);
        }

        public void Delete(LoaiKhachHangInfo loaiKhachHangInfo)
        {
            LoaiKhachHangDA.Delete(loaiKhachHangInfo);
        }

        public string TaoMaTuDong(string maGoc, int batDau)
        {
            return LoaiKhachHangDA.TaoMaTuDong(maGoc, batDau);
        }
    }
}
